<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='图纸管理')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/Drawing/drawingManagement.css}" rel="stylesheet" />
<body class="blank_bg">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row">
					<div class="col-sm-6 col-md-6 divClassLeft" style="width: 45%">
						<div class="col-sm-12 col-md-12" style="background-color: #5bc0de; height: 30px; line-height: 30px;">
							<p style="color: #fff;">图纸信息</p>
						</div>
						<div class="col-sm-12 col-md-12" style="margin: 8px 0 8px 0;">
							<div style="float: left;">
								<span class="spanCss">件号：</span> 
								<input id="partNo" type="text" class="form-control" style="width: 100px;"/>
							</div>
							<div style="float: left; margin-left: 15px;">
								<span class="spanCss">下发车间：</span> 
								<input id="depaName" class="depaName form-control" type="text" style="width: 130px;"/>
							</div>
							<div style="float:left">
								<button type="button" id="cx" class="btn btn-default" style="margin-left: 15px; padding: 2px 6px;">查询</button>
								<input id="temporary" type="text" style="display: none;" />
							</div>
							<div style="clear:both"></div>
						</div>
						<div>
							<button id="tzxfX" class="btn btn-default " style="margin: -5px 0 5px 0;" onclick="operation(this.id)">登记入库</button>
							<button id="tzgh" class="btn btn-default " style="margin: -5px 0 5px 0;" onclick="operation(this.id)">回收出库</button>
							<table id="drawTable" class="table table-hover "></table>
						</div>
					</div>
					<div class="col-sm-6 col-md-6 divClassRight" style="width: 55%">
						<div id="drawingShow">
							<div class="col-sm-12 col-md-12" style="background-color: #5bc0de; height: 30px; line-height: 30px;">
								<p style="color: #fff;">图纸</p>
							</div>
							<div class="col-sm-12 col-md-12" style="margin: 8px 0 8px 0; padding: 0;">
								<div style="float: left;">
									<span class="spanCss">编号：</span>
									<input id="drawingCode" type="text" style="width: 100px;" class="form-control" />
								</div>
								<div style="float: left; margin-left: 10px;">
									<span class="spanCss">下发车间：</span>
									<input id="depaName1" class="depaName form-control" type="text" style="width: 130px;" />
								</div>
								<div style="float: left; margin-left: 10px;">
									<span class="spanCss">借出人：</span>
									<input id="jcr" type="text" style="width: 67px;" class="form-control" />
								</div>
								<div style="float: left; margin-left: 10px;">
									<span class="spanCss">状态：</span> 
									<select name="zt" id="zt" class="selectpicker" data-live-search="false" data-width="auto">
										<option value="" selected="selected">全部</option>
										<option value="0">借出</option>
										<option value="1">在库</option>
										<!-- <option value="2">归还</option> -->
									</select>
								</div>
								<div style="float:left">
									<button type="button" id="query" class="btn btn-default" style="margin-left: 10px; padding: 2px 6px;">查询</button>
								</div>
								<div style="clear:both"></div>
							</div>
							<div>
								<button id="ygjc" class="btn btn-default " style="margin: -5px 0 5px 0;" onclick="operation(this.id)">员工借出</button>
								<button id="yggh" class="btn btn-default " style="margin: -5px 0 5px 0;" onclick="operation(this.id)">图纸归还</button>
								<table id="tzzltable" class="table table-hover "></table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- body end -->

	<!-- 提示扫码模态框 start -->
	<div class="modal fade " id="scanCodeModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
		<div class="modal-dialog" style="width: 400px; height: 500px;">
			<div class="modal-content" style="width: auto; height: auto;">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="">员工登记</h4>
				</div>
				<div class="modal-body">
					<table style="margin: 0 0 0 48px; border-collapse: separate; border-spacing: 0 7px;">
						<tr>
							<td style="text-align: right; font-size: 17px;">申请人</td>
							<td id="djsj" style="width: 200px;">
							<input id="ygsm" name="ygsm" class="ipt nickname clean_c editfocus enter form-control" style="width: 100%; margin-left: 10px;" placeholder="请刷员工卡" /></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<!-- 提示扫码模态框 end -->

	<!-- 图纸下发/回收模态框 start -->
	<div class="modal fade " id="myModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
		<div class="modal-dialog" style="width: 900px; height: 500px;">
			<div class="modal-content" style="width: auto;">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel"></h4>
				</div>
				<div class="modal-body" style="height: 400px; padding: 10px;">
					<table border="0" style="width: 100%; margin-bottom: 10px; font-size: 20px;">
						<tr>
							<td>单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
							<td>
								<input id="xfdh" name="xfdh" type="text" class="clean_c" readonly="readonly" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 0 5px;" />
							</td>
							<td style="width: 70px; text-align: right;">部门：</td>
							<td>
								<input id="jsr" name="jsr" type="text" class="clean_c" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 0 5px;" readonly="readonly" />
							</td>
							<td style="width: 100px;"><span id="ryxm"></span></td>
							<td>
								<input id="xfryxm" name="xfryxm" type="text" class="clean_c" value="" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 0 5px;" />
							</td>
							<td class="hidden">
								<span id="ry"></span>
							</td>
							<td class="hidden">
								<input id="xfry" name="xfry" type="text" class="clean_c" value="" style="width: 100%;" />
							</td>
						</tr>
						<tr>
							<td><span id="sj"></span></td>
							<td>
								<input id="xfsj" name="xfsj" type="text" class="" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 0 5px;" readonly="readonly" />
							</td>
							<td style="text-align: right;">备注：</td>
							<td colspan="3">
								<input id="xfbz" name="xfbz" type="text" class="" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 0 5px;" />
							</td>

						</tr>
					</table>
					<form action="#" id="tzxzform" role="form">
						<table id="tzxfdjtab" class="table table-hover tableFontSize"></table>
					</form>
					<div style="width: 390px; margin: 10px auto">
						<button id="bc" class="btn btn-default " style="margin-right: 10px; font-size: 20px;">保存（F7）</button>
						<button id="fw" class="btn btn-default " style="margin-right: 10px; font-size: 20px;">复位（F8）</button>
						<button type="button" class="btn btn-default btn-close" data-dismiss="modal" style="font-size: 20px;">关闭（Esc）</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 图纸下发/回收模态框 end -->

	<!-- 员工借出模态框 start -->
	<div class="modal fade " id="ygjcModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
		<div class="modal-dialog" style="width: 900px; height: 500px;">
			<div class="modal-content" style="width: auto;">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabelm"></h4>
				</div>
				<div class="modal-body" style="height: 400px;">
					<table border="0" style="width: 100%; font-size: 20px; margin-bottom: 10px;">
						<tr>
							<td style="width: 60px">员工：</td>
							<td style="width: 100px;">
								<input id="yg" name="yg" type="text" class="clean_c hidden" style="width: 100%;" value="" />
								<input id="ygxm" name="ygxm" type="text" class="clean_c " style="width: 100%; border: none; border-bottom: 1px solid black; padding: 5px;" value="" />
							</td>
							<td style="width: 80px; text-align: right;">备注：</td>
							<td colspan="3">
								<input id="bz" name="bz" type="text" class="" style="width: 100%; border: none; border-bottom: 1px solid black; padding: 5px;" />
							</td>
						</tr>
					</table>
					<form action="#" id="ygjcform" role="form" style="font-size: 20px;">
						<table id="ygjctab" class="table table-hover tableFontSize"></table>
					</form>
					<div style="width: 390px; margin: 10px auto">
						<button id="ygjcSave" class="btn btn-default " style="margin-right: 10px; font-size: 20px;">保存（F7）</button>
						<button id="ygjcReset" class="btn btn-default " style="margin-right: 10px; font-size: 20px;">复位（F8）</button>
						<button type="button" class="btn btn-default btn-close" data-dismiss="modal" style="font-size: 20px;">关闭（Esc）</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 员工借出模态框 end -->

	<!-- 提示借出模态框 start -->
	<div class="modal fade " id="promptModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
		<div class="modal-dialog" style="width: 600px; height: 500px;">
			<div class="modal-content" style="width: auto; height: auto;">
				<!-- <div class="modal-header col-md-12">
					<h4 class="modal-title" id="titleName"></h4>
				</div> -->
				<div class="modal-body" style="">
					<div style="text-align: center; font-size: 20px;" id="titleName">
					</div>
					<div style="margin-bottom: 10px; margin-top: 5px; font-size: 14px;">
						<span id="content"></span>
					</div>
					<div style="height: 195px;">
						<div class="tipDiv">
							<table id="tipTable" class="tipTab">
							</table>
						</div>
					</div>
					<div style="text-align: center;">
						<!-- <button id="ygjcSave" class="btn btn-default "
							style="margin-right:10px;font-size:20px;">保存（F7）</button>
						<button id="ygjcReset" class="btn btn-default "
							style="margin-right:10px;font-size:20px;">复位（F8）</button> -->
						<button type="button" class="btn btn-default btn-close" data-dismiss="modal" style="font-size: 20px;" id="closePrompt">关闭</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 提示模态框 end -->

	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: tableExport" />
	<div th:include="base :: others" />
	<script th:src="@{js/Drawing/drawingManagement.js}"></script>
</body>
</html>
